﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLDC.Common.Estate;

namespace ZLDC.Estate.CM
{
    public partial class CustomerTranction : _PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                UserId.Value = _Utility.GetInfoBySession().m_sUserID;//人员ID;
                deptid.Value = _Utility.GetInfoBySession().m_sDeptID;//部门ID
                station.Value = _Utility.GetInfoBySession().m_sStation;//岗位状态

                btnCompetences();   // 权限控制按钮
            }
        }

        // 权限控制按钮
        private void btnCompetences()
        {
            if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("成交客转私客"))
                btnChangeSelf.Visible = false;
            if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("成交客转公客"))
                btnChange.Visible = false;           
        }
	}
}
